﻿#ifndef SINGLECAPCMDFRAME_H
#define SINGLECAPCMDFRAME_H

#include "cmdframe.h"

namespace IGBTProtocol
{
    class IGBTPROTOCOL_EXPORT SingleCapCmdFrame : public CmdFrame
    {
        protected:
            SingleCapCmdFrame();

        public:
            SingleCapCmdFrame(CmdType cmdType, unsigned short capturePeriodUs);

        protected:
            unsigned short _capturePeriodUs;

        public:
            unsigned short capturePeriodUs() const { return _capturePeriodUs; }
            unsigned int frame(QByteArray* buff, bool tail = false);
    };
}

#endif // SINGLECAPCMDFRAME_H
